package com.joplus.housekeeper.adapter;

import android.content.Context;
import android.view.View;
import android.widget.ImageView;

import com.bigkoo.convenientbanner.holder.Holder;

/**
 * Created by ccm on 2016/9/28 15:07
 */


public class BannerLoginHold implements Holder<Integer> {

    private ImageView imageView;

    @Override
    public View createView(Context context) {
        imageView = new ImageView(context);
        imageView.setScaleType(ImageView.ScaleType.FIT_XY);
        return imageView;
    }



    @Override
    public void UpdateUI(Context context, int position, Integer i) {
     /*   imageView.setScaleType(ImageView.ScaleType.CENTER_CROP);
        ImageLoader.getInstance().displayImage(data, imageView);*/
        imageView.setImageResource(i);
    }


}
